org.eclipse.vtp.desktop.projects.core
Interface IMediaFile
- All Superinterfaces:
- org.eclipse.core.runtime.IAdaptable, IMediaResource, IVoiceToolsResource
- All Known Subinterfaces:
- IAudioFile, IGrammarFile
- All Known Implementing Classes:
- AudioFile, GrammarFile, MediaFile
public interface IMediaFile
- extends IMediaResource
This abstract interface represents a generic media file resource.
The creation of new media files is performed through the intended
parent media container. Currently there are two specializations
of this interface: IAudioFile and IGrammarFile.
- Version:
- 2.0
- Author:
- Trip Gilman
|
Method Summary |
long |
length()
Returns the length of this media resource in number of bytes. |
java.io.InputStream |
open()
Opens this media file resource and returns an InputStream
to it's contents. |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
open
java.io.InputStream open()
throws org.eclipse.core.runtime.CoreException
- Opens this media file resource and returns an
InputStream
to it's contents.
- Returns:
- An input stream to the resource contents
- Throws:
org.eclipse.core.runtime.CoreException - If an error occured while opening the resource
length
long length()
throws org.eclipse.core.runtime.CoreException
- Returns the length of this media resource in number of bytes.
- Returns:
- The number of bytes contained in this resource
- Throws:
org.eclipse.core.runtime.CoreException - If an error occured while calculating the file
length